<template>
<div>
  <h4>员工考勤</h4>
  <el-table :data="message">
    <el-table-column prop="id" label="员工id" width="120">
    </el-table-column>
    <el-table-column prop="name" label="员工姓名" width="120">
    </el-table-column>
    <el-table-column prop="normal" label="正常考勤/次" width="120">
    </el-table-column>
    <el-table-column prop="beLate" label="迟到/次" width="120">
    </el-table-column>
    <el-table-column prop="askForLeave" label="请假/次" width="120">
    </el-table-column>
    <el-table-column prop="absence" label="缺勤/次" width="120">
    </el-table-column>
  </el-table>
</div>
</template>

<script>
import axios from "axios";

export default {
  name: "KaoQing",
  data(){
    return{
      message:[]
    }
  },
  created() {
    this.getInfor()
  },
  methods:{
    getInfor(){
      axios({
        url:'/infor/information',
        method:'get',
      }).then(res =>{
        this.message = res.data
      })
    }

  }
}
</script>

<style scoped>

</style>
